package cn.iocoder.boot.demokeycloakbk.rsa;

import com.auth0.jwt.JWT;
import com.auth0.jwt.algorithms.Algorithm;
import java.security.interfaces.RSAPrivateKey;

public class JwtSigner {

    public static String signJwt(RSAPrivateKey privateKey) {
        return JWT.create()
            .withIssuer("issuer")
            .withSubject("subject")
            .sign(Algorithm.RSA256(null, privateKey));
    }
}
